package com.yl.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author L
 * @since 2023-07-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("机构中心端账号管理")
public class Jigouzhongxinduanaccount implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 姓名
     */
    @ApiModelProperty("姓名")
    private String name;

    /**
     * 手机号
     */
    @ApiModelProperty("手机号")
    private String phone;


    /**
     * 创建人姓名
     */
    @ApiModelProperty("创建人姓名")
    private String founder;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("头像")
    private String headSculpture;
    /**
     * 软删除 0未删除 1已删除
     */
    @ApiModelProperty("软删除 0未删除 1已删除")
    @TableLogic
    @TableField
    private Integer isDelete;

    @ApiModelProperty("userId")
    private Integer usersId;

    @TableField(exist = false)
    @TableLogic
    private String roleName;

    @TableLogic
    @TableField(exist = false)
    @ApiModelProperty("users实体类")
    private Users users;
}
